﻿using System.ComponentModel.DataAnnotations;

namespace Entity.WMS.DTO.WarehouseStocktaking
{
    /// <summary>
    /// 库存盘点表模型子单 - 新增
    /// </summary>
    public class WarehouseStocktakingItemAddDTO
    {
        ///<summary>
        /// 物料id
        /// </summary>
        [Required(ErrorMessage = "物料GoodsId不能为空")]
        public string GoodsId { get; set; }

        ///<summary>
        /// 仓库id
        /// </summary>
        [Required(ErrorMessage = "仓库WarehouseId不能为空")]
        public string WarehouseId { get; set; }

        ///<summary>
        /// 仓位id
        /// </summary>
        [Required(ErrorMessage = "仓位WarehousePositionId不能为空")]
        public string WarehousePositionId { get; set; }

        ///<summary>
        /// 批次号
        /// </summary>
        public string? BatchNumber { get; set; }

        ///<summary>
        /// 账面库存
        /// </summary>
        [Required(ErrorMessage = "入库数量Number_Real不能为空")]
        public decimal Number_Real { get; set; }

        ///<summary>
        /// 盘点数量
        /// </summary>
        [Required(ErrorMessage = "入库数量Number_Stocktaking不能为空")]
        public decimal Number_Stocktaking { get; set; }

        ///<summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
